package com.dreamoo.common.pojo.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 评论实体类
 * 
 * @author dreamoo
 */
@Data
@TableName("comment")
public class Comment implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 评论ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;
    
    /**
     * 梦境社区ID
     */
    @TableField("dream_community_id")
    private Long dreamCommunityId;
    
    /**
     * 评论内容
     */
    @TableField("content")
    private String content;
    
    /**
     * 父评论ID，用于回复
     */
    @TableField("parent_id")
    private Long parentId;
    
    /**
     * 根评论ID
     */
    @TableField("root_id")
    private Long rootId;
    
    /**
     * 创建时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;
    
    /**
     * 状态：0-已删除，1-正常
     */
    @TableField("status")
    private Integer status;
} 